import ajax from './request'

export const postLogin = (data) => {
  return ajax.post(`/api/users/login`, data)
}

export const postList = (data) => {
  return ajax.post(`/api/users/list`, data)
}

export const getSearch = (params) => {
  return ajax.get(`/api/users/search`, {params})
}

// const API = 'http://localhost:3000/api'

// export const postLogin = (data) => {
//   return axios.post(`${API}/users/login`, data)
// }

// export const postList = (data) => {
//   return axios.post(`${API}/users/list`, data)
// }





